import request from '../util/request';

export function hotList({page,num=6}) {
  // return request(`/api/collections/${page}`);
  return request(`https://bbs.360.cn/zt/360phonecyj/index.php?mod=getPicList&num=${num}&order=hot&page=${page}`);
}

export function allList({page,num=6}) {
  return request(`https://bbs.360.cn/zt/360phonecyj/index.php?mod=getPicList&num=${num}&order=all&page=${page}`);
}

export function excellentList() {
  return request(`https://bbs.360.cn/zt/360phonecyj/index.php?mod=getPicList&order=excellent`);
}

export function myList() {
  return request(`https://bbs.360.cn/zt/360phonecyj/index.php?mod=getPicList&order=my`);
}

export function detailList(id) {
  return request(`https://bbs.360.cn/zt/360phonecyj/index.php?mod=getPicDetail&id=${id}`);
}

export function upload(options) {
  return request(`//bbs.360.cn/zt/360phonecyj/index.php?mod=signUp`,options);
}